package com.mrd.gtimpframe.service.impl;

import com.mrd.gtimpframe.entity.UserService;
import com.mrd.gtimpframe.repository.UserServiceMapper;
import com.mrd.gtimpframe.service.UserServiceService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by dusy on 2017/7/20.
 */
@Service
public class UserServiceServiceImpl implements UserServiceService {
    @Autowired
    private UserServiceMapper userServiceMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return userServiceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UserService record) {
        return userServiceMapper.insert(record);
    }

    @Override
    public int insertSelective(UserService record) {
        return userServiceMapper.insertSelective(record);
    }

    @Override
    public UserService selectByPrimaryKey(String id) {
        return userServiceMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(UserService record) {
        return userServiceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserService record) {
        return userServiceMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<UserService> selectSelective(UserService record) {
        return userServiceMapper.selectSelective(record);
    }
}
